* Mark McLoughlin <mark@skynet.ie>
*/
-#ifndef __CALENDAR_DEBUG_H__
-#define __CALENDAR_DEBUG_H__
+#pragma once
#include <glib.h>
#endif /* CALENDAR_ENABLE_DEBUG */
G_END_DECLS
-
-#endif /* __CALENDAR_DEBUG_H__ */
* Christian Kellner <gicmo@xatom.net>
*/
-#ifndef __CALENDAR_SOURCES_H__
-#define __CALENDAR_SOURCES_H__
+#pragma once
#include <glib-object.h>
...) G_GNUC_PRINTF (1, 2);
G_END_DECLS
-
-#endif /* __CALENDAR_SOURCES_H__ */
* Author: Ryan Lortie <desrt@desrt.ca>
*/
-#ifndef __GTK_ACTION_MUXER_H__
-#define __GTK_ACTION_MUXER_H__
+#pragma once
#include <gio/gio.h>
GVariant *target);
G_END_DECLS
-
-#endif /* __GTK_ACTION_MUXER_H__ */
* Authors: Ryan Lortie <desrt@desrt.ca>
*/
-#ifndef __GTK_ACTION_OBSERVABLE_H__
-#define __GTK_ACTION_OBSERVABLE_H__
+#pragma once
#include "gtkactionobserver.h"
GtkActionObserver *observer);
G_END_DECLS
-
-#endif /* __GTK_ACTION_OBSERVABLE_H__ */
* Authors: Ryan Lortie <desrt@desrt.ca>
*/
-#ifndef __GTK_ACTION_OBSERVER_H__
-#define __GTK_ACTION_OBSERVER_H__
+#pragma once
#include <gio/gio.h>
const gchar *action_and_target);
G_END_DECLS
-
-#endif /* __GTK_ACTION_OBSERVER_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __HOTPLUG_MIMETYPES_H__
-#define __HOTPLUG_MIMETYPES_H__
+#pragma once
#include <glib.h>
"audio/x-xm",
NULL
};
-
-#endif /* __HOTPLUG_MIMETYPES_H__ */
*
*/
-#ifndef __SHELL_MIME_SNIFFER_H__
-#define __SHELL_MIME_SNIFFER_H__
+#pragma once
#include <glib-object.h>
#include <gio/gio.h>
GError **error);
G_END_DECLS
-
-#endif /* __SHELL_MIME_SNIFFER_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_APP_CACHE_PRIVATE_H__
-#define __SHELL_APP_CACHE_PRIVATE_H__
+
+#pragma once
#include <gio/gio.h>
#include <gio/gdesktopappinfo.h>
const char *id);
char *shell_app_cache_translate_folder (ShellAppCache *cache,
const char *name);
-
-#endif /* __SHELL_APP_CACHE_PRIVATE_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_APP_PRIVATE_H__
-#define __SHELL_APP_PRIVATE_H__
+#pragma once
#include "shell-app.h"
#include "shell-app-system.h"
void _shell_app_remove_window (ShellApp *app, MetaWindow *window);
G_END_DECLS
-
-#endif /* __SHELL_APP_PRIVATE_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_APP_SYSTEM_PRIVATE_H__
-#define __SHELL_APP_SYSTEM_PRIVATE_H__
+#pragma once
#include "shell-app-system.h"
void _shell_app_system_notify_app_state_changed (ShellAppSystem *self, ShellApp *app);
-
-#endif
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_APP_SYSTEM_H__
-#define __SHELL_APP_SYSTEM_H__
+#pragma once
#include <gio/gio.h>
#include <clutter/clutter.h>
char ***shell_app_system_search (const char *search_string);
GList *shell_app_system_get_installed (ShellAppSystem *self);
-
-#endif /* __SHELL_APP_SYSTEM_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_APP_USAGE_H__
-#define __SHELL_APP_USAGE_H__
+#pragma once
#include "shell-app.h"
#include "shell-window-tracker.h"
const char *id_b);
G_END_DECLS
-
-#endif /* __SHELL_APP_USAGE_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_APP_H__
-#define __SHELL_APP_H__
+#pragma once
#include <clutter/clutter.h>
#include <gio/gio.h>
gboolean shell_app_get_busy (ShellApp *app);
G_END_DECLS
-
-#endif /* __SHELL_APP_H__ */
* 02111-1307, USA.
*/
-#ifndef __SHELL_CAMERA_MONITOR_H__
-#define __SHELL_CAMERA_MONITOR_H__
+#pragma once
#include <glib-object.h>
SHELL, CAMERA_MONITOR, GObject)
G_END_DECLS
-
-#endif /* __SHELL_CAMERA_MONITOR_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_GLOBAL_PRIVATE_H__
-#define __SHELL_GLOBAL_PRIVATE_H__
+#pragma once
#include "shell-global.h"
void _shell_global_locate_pointer (ShellGlobal *global);
void _shell_global_notify_shutdown (ShellGlobal *global);
-
-#endif /* __SHELL_GLOBAL_PRIVATE_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_GLOBAL_H__
-#define __SHELL_GLOBAL_H__
+#pragma once
#include <clutter/clutter.h>
#include <glib-object.h>
ShellAppUsage * shell_global_get_app_usage (ShellGlobal *global);
G_END_DECLS
-
-#endif /* __SHELL_GLOBAL_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_GLSL_EFFECT_H__
-#define __SHELL_GLSL_EFFECT_H__
+#pragma once
#include "st.h"
int dimensions,
int total_count,
const float *value);
-
-#endif /* __SHELL_GLSL_EFFECT_H__ */
* Author:
* Joseph Scheuhammer <clown@alum.mit.edu>
*/
-#ifndef __SHELL_INVERT_LIGHTNESS_EFFECT_H__
-#define __SHELL_INVERT_LIGHTNESS_EFFECT_H__
+#pragma once
#include <clutter/clutter.h>
ClutterEffect *shell_invert_lightness_effect_new (void);
G_END_DECLS
-
-#endif /* __SHELL_INVERT_LIGHTNESS_EFFECT_H__ */
Author: Stef Walter <stef@thewalter.net>
*/
-#ifndef __SHELL_KEYRING_PROMPT_H__
-#define __SHELL_KEYRING_PROMPT_H__
+#pragma once
#include <glib-object.h>
#include <glib.h>
void shell_keyring_prompt_cancel (ShellKeyringPrompt *self);
G_END_DECLS
-
-#endif /* __SHELL_KEYRING_PROMPT_H__ */
*
*/
-#ifndef __SHELL_MOUNT_OPERATION_H__
-#define __SHELL_MOUNT_OPERATION_H__
+#pragma once
#include <gio/gio.h>
gchar * shell_mount_operation_get_show_processes_message (ShellMountOperation *self);
G_END_DECLS
-
-#endif /* __SHELL_MOUNT_OPERATION_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_NETWORK_AGENT_H__
-#define __SHELL_NETWORK_AGENT_H__
+#pragma once
#include <glib-object.h>
#include <glib.h>
#define SHELL_KEYRING_SK_TAG "setting-key"
G_END_DECLS
-
-#endif /* __SHELL_NETWORK_AGENT_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_PERF_LOG_H__
-#define __SHELL_PERF_LOG_H__
+#pragma once
#include <glib-object.h>
#include <gio/gio.h>
GError **error);
G_END_DECLS
-
-#endif /* __SHELL_PERF_LOG_H__ */
void shell_polkit_authentication_agent_unregister (ShellPolkitAuthenticationAgent *agent);
G_END_DECLS
-
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_SCREENSHOT_H__
-#define __SHELL_SCREENSHOT_H__
+#pragma once
#include <mtk/mtk.h>
gpointer user_data);
GdkPixbuf *shell_screenshot_composite_to_stream_finish (GAsyncResult *result,
GError **error);
-
-#endif /* ___SHELL_SCREENSHOT_H__ */
Author: Stef Walter <stefw@gnome.org>
*/
-#ifndef __SHELL_SECURE_TEXT_BUFFER_H__
-#define __SHELL_SECURE_TEXT_BUFFER_H__
+#pragma once
#include <clutter/clutter.h>
ClutterTextBuffer * shell_secure_text_buffer_new (void);
G_END_DECLS
-
-#endif /* __SHELL_SECURE_TEXT_BUFFER_H__ */
-#ifndef __SHELL_SQUARE_BIN_H__
-#define __SHELL_SQUARE_BIN_H__
+#pragma once
+
#include <st/st.h>
G_DECLARE_FINAL_TYPE (ShellSquareBin, shell_square_bin, SHELL, SquareBin, StBin)
G_END_DECLS
-
-#endif /* __SHELL_SQUARE_BIN_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_STACK_H__
-#define __SHELL_STACK_H__
+#pragma once
#include "st.h"
#define SHELL_TYPE_STACK (shell_stack_get_type ())
G_DECLARE_FINAL_TYPE (ShellStack, shell_stack, SHELL, STACK, StWidget)
-
-#endif /* __SHELL_STACK_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef SHELL_TRAY_ICON_PRIVATE_H
-#define SHELL_TRAY_ICON_PRIVATE_H
+#pragma once
#include "shell-tray-icon.h"
#include "na-tray-child.h"
ClutterActor * shell_tray_icon_new (NaTrayChild *tray_child);
-
-#endif /* SHELL_TRAY_ICON_PRIVATE_H */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_TRAY_ICON_H__
-#define __SHELL_TRAY_ICON_H__
+#pragma once
#include <clutter/clutter.h>
void shell_tray_icon_click (ShellTrayIcon *icon,
ClutterEvent *event);
-
-#endif /* __SHELL_TRAY_ICON_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_TRAY_MANAGER_H__
-#define __SHELL_TRAY_MANAGER_H__
+#pragma once
#include <clutter/clutter.h>
#include "st.h"
void shell_tray_manager_unmanage_screen (ShellTrayManager *manager);
G_END_DECLS
-
-#endif /* __SHELL_TRAY_MANAGER_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_UTIL_H__
-#define __SHELL_UTIL_H__
+#pragma once
#include <gio/gio.h>
#include <clutter/clutter.h>
GError **error);
G_END_DECLS
-
-#endif /* __SHELL_UTIL_H__ */
-#ifndef __SHELL_WINDOW_PREVIEW_LAYOUT_H__
-#define __SHELL_WINDOW_PREVIEW_LAYOUT_H__
+#pragma once
G_BEGIN_DECLS
GList * shell_window_preview_layout_get_windows (ShellWindowPreviewLayout *self);
G_END_DECLS
-
-#endif /* __SHELL_WINDOW_PREVIEW_LAYOUT_H__ */
-#ifndef __SHELL_WINDOW_PREVIEW_H__
-#define __SHELL_WINDOW_PREVIEW_H__
+#pragma once
#include <st/st.h>
SHELL, WINDOW_PREVIEW, StWidget)
G_END_DECLS
-
-#endif /* __SHELL_WINDOW_PREVIEW_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_WINDOW_TRACKER_PRIVATE_H__
-#define __SHELL_WINDOW_TRACKER_PRIVATE_H__
+#pragma once
#include "shell-window-tracker.h"
void _shell_window_tracker_add_child_process_app (ShellWindowTracker *tracker,
GPid pid,
ShellApp *app);
-
-#endif
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_WINDOW_TRACKER_H__
-#define __SHELL_WINDOW_TRACKER_H__
+#pragma once
#include <glib-object.h>
#include <glib.h>
GSList *shell_window_tracker_get_startup_sequences (ShellWindowTracker *tracker);
G_END_DECLS
-
-#endif /* __SHELL_WINDOW_TRACKER_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_WM_PRIVATE_H__
-#define __SHELL_WM_PRIVATE_H__
+#pragma once
#include "shell-wm.h"
#include <mtk/mtk.h>
MetaWindow *window);
G_END_DECLS
-
-#endif /* __SHELL_WM_PRIVATE_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __SHELL_WM_H__
-#define __SHELL_WM_H__
+#pragma once
#include <glib-object.h>
#include <meta/meta-plugin.h>
gboolean ok);
G_END_DECLS
-
-#endif /* __SHELL_WM_H__ */
-#ifndef __SHELL_WORKSPACE_BACKGROUND_H__
-#define __SHELL_WORKSPACE_BACKGROUND_H__
+#pragma once
#include <st/st.h>
SHELL, WORKSPACE_BACKGROUND, StWidget)
G_END_DECLS
-
-#endif /* __SHELL_WORKSPACE_BACKGROUND_H__ */
* See the COPYRIGHTS file for copyright information.
*/
-
-#ifndef __CR_ADD_SEL_H__
-#define __CR_ADD_SEL_H__
+#pragma once
#include <stdio.h>
#include <glib.h>
void cr_additional_sel_destroy (CRAdditionalSel *a_this) ;
G_END_DECLS
-
-#endif /*__CR_ADD_SEL_H*/
* See COPYRIGHTS file for copyright information.
*/
-#ifndef __CR_ATTR_SEL_H__
-#define __CR_ATTR_SEL_H__
+#pragma once
#include <stdio.h>
#include <glib.h>
void cr_attr_sel_destroy (CRAttrSel *a_this) ;
G_END_DECLS
-
-#endif /*__CR_ATTR_SEL_H__*/
*$Id$
*/
-#ifndef __CR_CASCADE_H__
-#define __CR_CASCADE_H__
+#pragma once
#include "cr-stylesheet.h"
void cr_cascade_destroy (CRCascade *a_this) ;
G_END_DECLS
-
-#endif /*__CR_CASCADE_H__*/
* See the COPYRIGHTS file for copyright information.
*/
-#ifndef __CR_DECLARATION_H__
-#define __CR_DECLARATION_H__
+#pragma once
#include <stdio.h>
#include "cr-utils.h"
void cr_declaration_destroy (CRDeclaration *a_this) ;
G_END_DECLS
-
-#endif /*__CR_DECLARATION_H__*/
* See the COPYRIGHTS file for copyright information.
*/
-#ifndef __CR_DOC_HANDLER_H__
-#define __CR_DOC_HANDLER_H__
+#pragma once
/**
*@file
void cr_doc_handler_destroy (CRDocHandler *a_this) ;
G_END_DECLS
-
-#endif /*__CR_DOC_HANDLER_H__*/
*
*/
-#ifndef __CR_ENC_HANDLER_H__
-#define __CR_ENC_HANDLER_H__
+#pragma once
#include "cr-utils.h"
gulong *a_out_len) ;
G_END_DECLS
-
-#endif /*__CR_ENC_HANDLER_H__*/
* See COPYRIGHTS file for copyright information.
*/
-#ifndef __CR_FONTS_H__
-#define __CR_FONTS_H__
+#pragma once
#include "cr-utils.h"
#include "cr-num.h"
const gchar * cr_font_stretch_to_string (enum CRFontStretch a_code) ;
G_END_DECLS
-
-#endif
* See the COPYRIGHTS file for copyrights information.
*/
-#ifndef __CR_INPUT_SRC_H__
-#define __CR_INPUT_SRC_H__
+#pragma once
#include <glib.h>
cr_input_end_of_input (CRInput const *a_this, gboolean *a_end_of_input) ;
G_END_DECLS
-
-#endif /*__CR_INPUT_SRC_H__*/
-
*of the #CRNum class.
*/
-#ifndef __CR_NUM_H__
-#define __CR_NUM_H__
+#pragma once
#include <glib.h>
#include "cr-utils.h"
G_END_DECLS
-
-
-#endif /*__CR_NUM_H__*/
*$Id$
*/
-#ifndef __CR_OM_PARSER_H__
-#define __CR_OM_PARSER_H__
+#pragma once
#include "cr-parser.h"
#include "cr-cascade.h"
void cr_om_parser_destroy (CROMParser *a_this) ;
G_END_DECLS
-
-#endif /*__CR_OM_PARSER_H__*/
* See COPYRIGHTS file for copyrights information.
*/
-#ifndef __CR_PARSER_H__
-#define __CR_PARSER_H__
+#pragma once
#include <glib.h>
#include "cr-input.h"
void cr_parser_destroy (CRParser *a_this) ;
G_END_DECLS
-
-#endif /*__CR_PARSER_H__*/
* See the COPYRIGHTS file for copyright information.
*/
-#ifndef __CR_PARSING_LOCATION_H__
-#define __CR_PARSING_LOCATION_H__
+#pragma once
#include "cr-utils.h"
-G_END_DECLS
-#endif
+G_END_DECLS
\ No newline at end of file
* See COPYRIGHTS file for copyrights information.
*/
-#ifndef __CR_PROP_LIST_H__
-#define __CR_PROP_LIST_H__
+#pragma once
#include "cr-utils.h"
#include "cr-declaration.h"
void cr_prop_list_destroy (CRPropList *a_this) ;
G_END_DECLS
-
-#endif /*__CR_PROP_LIST_H__*/
* See COPYRIGHTS file for copyright information
*/
-#ifndef __CR_PSEUDO_H__
-#define __CR_PSEUDO_H__
+#pragma once
#include <stdio.h>
#include <glib.h>
void cr_pseudo_destroy (CRPseudo *a_this) ;
G_END_DECLS
-
-#endif /*__CR_PSEUDO_H__*/
* see COPYRIGHTS file for copyright information.
*/
-#ifndef __CR_RGB_H__
-#define __CR_RGB_H__
+#pragma once
#include <stdio.h>
#include <glib.h>
void cr_rgb_destroy (CRRgb *a_this) ;
G_END_DECLS
-
-#endif /*__CR_RGB_H__*/
* See COPYRIGHTS file for copyright information.
*/
-#ifndef __CR_SELECTOR_H__
-#define __CR_SELECTOR_H__
+#pragma once
#include <stdio.h>
#include "cr-utils.h"
void cr_selector_destroy (CRSelector *a_this) ;
G_END_DECLS
-
-#endif /*__CR_SELECTOR_H__*/
*/
-#ifndef __CR_SEL_H__
-#define __CR_SEL_H__
+#pragma once
#include <stdio.h>
#include <glib.h>
void cr_simple_sel_destroy (CRSimpleSel *a_this) ;
G_END_DECLS
-
-
-#endif /*__CR_SIMPLE_SEL_H__*/
#include "cr-selector.h"
#include "cr-declaration.h"
-#ifndef __CR_STATEMENT_H__
-#define __CR_STATEMENT_H__
+#pragma once
G_BEGIN_DECLS
cr_statement_destroy (CRStatement *a_this) ;
G_END_DECLS
-
-#endif /*__CR_STATEMENT_H__*/
*Declaration file of the #CRString class.
*/
-#ifndef __CR_STRING_H__
-#define __CR_STRING_H__
+#pragma once
#include <glib.h>
#include "cr-utils.h"
void cr_string_destroy (CRString *a_this) ;
G_END_DECLS
-
-#endif
*/
-#ifndef __CR_STYLESHEET_H__
-#define __CR_STYLESHEET_H__
+#pragma once
#include "cr-utils.h"
#include "cr-statement.h"
void cr_stylesheet_destroy (CRStyleSheet *a_this) ;
G_END_DECLS
-
-#endif /*__CR_STYLESHEET_H__*/
#include "cr-num.h"
#include "cr-string.h"
-#ifndef __CR_TERM_H__
-#define __CR_TERM_H__
+#pragma once
G_BEGIN_DECLS
void cr_term_destroy (CRTerm * a_term) ;
G_END_DECLS
-
-#endif /*__CR_TERM_H__*/
*class.
*/
-#ifndef __CR_TKNZR_H__
-#define __CR_TKNZR_H__
+#pragma once
#include "cr-utils.h"
#include "cr-input.h"
void cr_tknzr_destroy (CRTknzr *a_this) ;
G_END_DECLS
-
-#endif /*__CR_TKZNR_H__*/
* See COPYRIGHTS file for copyright information.
*/
-#ifndef __CR_TOKEN_H__
-#define __CR_TOKEN_H__
+#pragma once
#include "cr-utils.h"
#include "cr-input.h"
G_END_DECLS
-
-#endif /*__CR_TOKEN_H__*/
* Look at file COPYRIGHTS for copyright information
*/
-#ifndef __CR_DEFS_H__
-#define __CR_DEFS_H__
+#pragma once
#include <stdio.h>
#include <glib.h>
cr_utils_dup_glist_of_cr_string (GList const * a_list_of_strings) ;
G_END_DECLS
-
-#endif /*__CR_DEFS_H__*/
* USA
*/
-#ifndef __LIBCROCO_H__
-#define __LIBCROCO_H__
+#pragma once
#include "libcroco-config.h"
#include "cr-om-parser.h"
#include "cr-prop-list.h"
#include "cr-string.h"
-
-#endif /*__LIBCROCO_H__*/
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_ADJUSTMENT_H__
-#define __ST_ADJUSTMENT_H__
+#pragma once
#include <glib-object.h>
#include <clutter/clutter.h>
const char *name);
G_END_DECLS
-
-#endif /* __ST_ADJUSTMENT_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_BIN_H__
-#define __ST_BIN_H__
+#pragma once
#include <st/st-types.h>
#include <st/st-widget.h>
ClutterActor *st_bin_get_child (StBin *bin);
G_END_DECLS
-
-#endif /* __ST_BIN_H__ */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_BORDER_IMAGE_H__
-#define __ST_BORDER_IMAGE_H__
+#pragma once
#include <glib-object.h>
#include <gio/gio.h>
StBorderImage *other);
G_END_DECLS
-
-#endif /* __ST_BORDER_IMAGE_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef _ST_BOX_LAYOUT_H
-#define _ST_BOX_LAYOUT_H
+#pragma once
#include <st/st-widget.h>
#include <st/st-viewport.h>
gboolean st_box_layout_get_pack_start (StBoxLayout *box);
G_END_DECLS
-
-#endif /* _ST_BOX_LAYOUT_H */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_BUTTON_H__
-#define __ST_BUTTON_H__
+#pragma once
G_BEGIN_DECLS
StButtonMask st_button_get_button_mask (StButton *button);
G_END_DECLS
-
-#endif /* __ST_BUTTON_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef _ST_CLIPBOARD_H
-#define _ST_CLIPBOARD_H
+#pragma once
#include <glib-object.h>
#include <meta/meta-selection.h>
void st_clipboard_set_selection (MetaSelection *selection);
G_END_DECLS
-
-#endif /* _ST_CLIPBOARD_H */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_DRAWING_AREA_H__
-#define __ST_DRAWING_AREA_H__
+#pragma once
#include "st-widget.h"
#include <cairo.h>
void st_drawing_area_get_surface_size (StDrawingArea *area,
guint *width,
guint *height);
-
-#endif /* __ST_DRAWING_AREA_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_ENTRY_H__
-#define __ST_ENTRY_H__
+#pragma once
G_BEGIN_DECLS
G_END_DECLS
-#endif /* __ST_ENTRY_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_FOCUS_MANAGER_H__
-#define __ST_FOCUS_MANAGER_H__
+#pragma once
#include <st/st-types.h>
#include <st/st-widget.h>
ClutterEvent *event);
G_END_DECLS
-
-#endif /* __ST_FOCUS_MANAGER_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_GENERIC_ACCESSIBLE_H__
-#define __ST_GENERIC_ACCESSIBLE_H__
+#pragma once
#include <clutter/clutter.h>
#include <st/st-widget-accessible.h>
AtkObject* st_generic_accessible_new_for_actor (ClutterActor *actor);
G_END_DECLS
-
-#endif /* __ST_GENERIC_ACCESSIBLE_H__ */
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_ICON_CACHE_H__
-#define __ST_ICON_CACHE_H__
+#pragma once
#include <gdk-pixbuf/gdk-pixbuf.h>
StIconCache *st_icon_cache_ref (StIconCache *cache);
void st_icon_cache_unref (StIconCache *cache);
-
-#endif /* __ST_ICON_CACHE_H__ */
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
-#ifndef __ST_ICON_COLORS__
-#define __ST_ICON_COLORS__
+#pragma once
#include <clutter/clutter.h>
StIconColors *other);
G_END_DECLS
-
-#endif /* __ST_ICON_COLORS__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef _ST_ICON
-#define _ST_ICON
+#pragma once
#include <glib-object.h>
#include <gio/gio.h>
G_END_DECLS
-#endif /* _ST_ICON */
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_IMAGE_CONTENT_H__
-#define __ST_IMAGE_CONTENT_H__
+#pragma once
#include <clutter/clutter.h>
ClutterContent *st_image_content_new_with_preferred_size (int width,
int height);
-
-#endif /* __ST_IMAGE_CONTENT_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_LABEL_H__
-#define __ST_LABEL_H__
+#pragma once
G_BEGIN_DECLS
G_END_DECLS
-#endif /* __ST_LABEL_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_PASSWORD_ENTRY_H__
-#define __ST_PASSWORD_ENTRY_H__
+#pragma once
G_BEGIN_DECLS
gboolean value);
G_END_DECLS
-
-#endif /* __ST_PASSWORD_ENTRY_H__ */
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_PRIVATE_H__
-#define __ST_PRIVATE_H__
+#pragma once
#include <glib.h>
#include <cairo.h>
CoglPipeline *shadow_pipeline,
ClutterActorBox *box,
guint8 paint_opacity);
-
-#endif /* __ST_PRIVATE_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_SCROLL_BAR_H__
-#define __ST_SCROLL_BAR_H__
+#pragma once
#include <st/st-adjustment.h>
#include <st/st-widget.h>
StAdjustment *st_scroll_bar_get_adjustment (StScrollBar *bar);
G_END_DECLS
-
-#endif /* __ST_SCROLL_BAR_H__ */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_SCROLL_VIEW_FADE_H__
-#define __ST_SCROLL_VIEW_FADE_H__
+#pragma once
#include <clutter/clutter.h>
ClutterEffect *st_scroll_view_fade_new (void);
G_END_DECLS
-
-#endif /* __ST_SCROLL_VIEW_FADE_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_SCROLLABLE_H__
-#define __ST_SCROLLABLE_H__
+#pragma once
#include <glib-object.h>
#include <st/st-adjustment.h>
StAdjustment **vadjustment);
G_END_DECLS
-
-#endif /* __ST_SCROLLABLE_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_SETTINGS_H__
-#define __ST_SETTINGS_H__
+#pragma once
#include <glib-object.h>
#include <gdesktop-enums.h>
void st_settings_uninhibit_animations (StSettings *settings);
G_END_DECLS
-
-#endif /* __ST_SETTINGS_H__ */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_SHADOW__
-#define __ST_SHADOW__
+#pragma once
#include <clutter/clutter.h>
uint8_t paint_opacity);
G_END_DECLS
-
-#endif /* __ST_SHADOW__ */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_TEXTURE_CACHE_H__
-#define __ST_TEXTURE_CACHE_H__
+#pragma once
#if !defined(ST_H_INSIDE) && !defined(ST_COMPILATION)
#error "Only <st/st.h> can be included directly.h"
GError **error);
gboolean st_texture_cache_rescan_icon_theme (StTextureCache *cache);
-
-#endif /* __ST_TEXTURE_CACHE_H__ */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_THEME_CONTEXT_H__
-#define __ST_THEME_CONTEXT_H__
+#pragma once
#include <clutter/clutter.h>
#include <pango/pango.h>
int st_theme_context_get_scale_factor (StThemeContext *context);
G_END_DECLS
-
-#endif /* __ST_THEME_CONTEXT_H__ */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_THEME_NODE_PRIVATE_H__
-#define __ST_THEME_NODE_PRIVATE_H__
+#pragma once
#include "st-theme-node.h"
#include "croco/libcroco.h"
ClutterActor *actor);
G_END_DECLS
-
-#endif /* __ST_THEME_NODE_PRIVATE_H__ */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_THEME_NODE_TRANSITION_H__
-#define __ST_THEME_NODE_TRANSITION_H__
+#pragma once
#include <clutter/clutter.h>
StThemeNodePaintState * st_theme_node_transition_get_new_paint_state (StThemeNodeTransition *transition);
G_END_DECLS
-
-#endif
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_THEME_NODE_H__
-#define __ST_THEME_NODE_H__
+#pragma once
#include <clutter/clutter.h>
#include "st-border-image.h"
StThemeNode *node);
G_END_DECLS
-
-#endif /* __ST_THEME_NODE_H__ */
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_THEME_PRIVATE_H__
-#define __ST_THEME_PRIVATE_H__
+#pragma once
#include "croco/libcroco.h"
#include "st-theme.h"
CRDeclaration *_st_theme_parse_declaration_list (const char *str);
G_END_DECLS
-
-#endif /* __ST_THEME_PRIVATE_H__ */
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_THEME_H__
-#define __ST_THEME_H__
+#pragma once
#include <glib-object.h>
GSList *st_theme_get_custom_stylesheets (StTheme *theme);
G_END_DECLS
-
-#endif /* __ST_THEME_H__ */
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __ST_TYPES_H__
-#define __ST_TYPES_H__
#if !defined(ST_H_INSIDE) && !defined(ST_COMPILATION)
#error "Only <st/st.h> can be included directly.h"
#endif
+#pragma once
+
#include <glib-object.h>
#include <clutter/clutter.h>
} StBackgroundSize;
G_END_DECLS
-
-#endif /* __ST_TYPES_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_WIDGET_ACCESSIBLE_H__
-#define __ST_WIDGET_ACCESSIBLE_H__
+#pragma once
G_BEGIN_DECLS
GType st_widget_accessible_get_type (void) G_GNUC_CONST;
G_END_DECLS
-
-#endif /* __ST_WIDGET_ACCESSIBLE_H__ */
#error "Only <st/st.h> can be included directly.h"
#endif
-#ifndef __ST_WIDGET_H__
-#define __ST_WIDGET_H__
+#pragma once
#include <clutter/clutter.h>
#include <st/st-types.h>
void st_widget_remove_accessible_state (StWidget *widget,
AtkStateType state);
G_END_DECLS
-
-#endif /* __ST_WIDGET_H__ */
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __NA_TRAY_CHILD_H__
-#define __NA_TRAY_CHILD_H__
+#pragma once
#include "na-xembed.h"
ClutterEvent *event);
G_END_DECLS
-
-#endif /* __NA_TRAY_CHILD_H__ */
* Used to be: eggtraymanager.h
*/
-#ifndef __NA_TRAY_MANAGER_H__
-#define __NA_TRAY_MANAGER_H__
+#pragma once
#include <clutter/clutter.h>
CoglColor *success);
G_END_DECLS
-
-#endif /* __NA_TRAY_MANAGER_H__ */
* Author: Carlos Garnacho <carlosg@gnome.org>
*/
-#ifndef NA_XEMBED_H
-#define NA_XEMBED_H
+#pragma once
#include <meta/meta-x11-display.h>
#include <glib-object.h>
void na_xembed_set_background_color (NaXembed *xembed,
const CoglColor *color);
-G_END_DECLS
-
-#endif /* NA_XEMBED_H */
+G_END_DECLS
\ No newline at end of file